package cn.qyd.javastring;

import org.apache.commons.lang3.StringUtils;

import java.util.Objects;

/**
 * @author 邱运铎
 * @date 2024-03-09 22:15
 */
public class StringConcatDemo {
    public static void main(String[] args) {
        System.out.println(Objects.equals("邱运铎",new String("邱"+"运铎")));
        String str= "hello" + null;
        System.out.println(str);
        System.out.println(String.join("-","邱运铎","java","开发程序员"));
        String s = Objects.requireNonNull(str);
        String join = StringUtils.join("邱运铎", "java", null, "开发程序员");
        char[] chars = new char[]{'a','b','c'};

        System.out.println(StringUtils.join(chars)  );

    }
}
